package edu.ustb.efws.base.controller.form;

import edu.ustb.efws.base.domain.Reason;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

@ApiModel("修改风险原因")
public class ReasonUpdateForm extends ReasonSaveForm {
    @NotNull
    @ApiModelProperty("编号")
    private Integer id;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Override
    public Reason toDomain() {
        Reason t = super.toDomain();
        t.setId(id);
        return t;
    }
}
